<?php

namespace Cck\ArticlesSystem\Http\Models;

use Illuminate\Database\Eloquent\Model;

class Permission extends Model
{
    protected $table = 'permissions';

    public $timestamps = false;

    protected $fillable = [
        'name', 'display_name', 'description'
    ];

    public function roles()
    {
        return $this->belongsToMany(Role::class, 'role_permissions')->using(RolePermission::class);
    }
}
